package com.beerandjesus.sportofkings.handicapper.model.brisnet.singlefile;


public class WorkoutImpl implements Workout {

	private String date;
	private String time;
	private String track;
	private String distance;
	private String trackCondition;
	private String description;
	private String trackIndicator;
	private String numWorksAtDistance;
	private String rank;
	/* (non-Javadoc)
	 * @see com.beerandjesus.sportofkings.handicapper.model.Workout#getDate()
	 */
	public String getDate() {
		return date;
	}
	public void setDate(String date) {
		this.date = date;
	}
	/* (non-Javadoc)
	 * @see com.beerandjesus.sportofkings.handicapper.model.Workout#getTime()
	 */
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	/* (non-Javadoc)
	 * @see com.beerandjesus.sportofkings.handicapper.model.Workout#getTrack()
	 */
	public String getTrack() {
		return track;
	}
	public void setTrack(String track) {
		this.track = track;
	}
	/* (non-Javadoc)
	 * @see com.beerandjesus.sportofkings.handicapper.model.Workout#getDistance()
	 */
	public String getDistance() {
		return distance;
	}
	public void setDistance(String distance) {
		this.distance = distance;
	}
	/* (non-Javadoc)
	 * @see com.beerandjesus.sportofkings.handicapper.model.Workout#getTrackCondition()
	 */
	public String getTrackCondition() {
		return trackCondition;
	}
	public void setTrackCondition(String trackCondition) {
		this.trackCondition = trackCondition;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getTrackIndicator() {
		return trackIndicator;
	}
	public void setTrackIndicator(String trackIndicator) {
		this.trackIndicator = trackIndicator;
	}
	/* (non-Javadoc)
	 * @see com.beerandjesus.sportofkings.handicapper.model.Workout#getNumWorksAtDistance()
	 */
	public String getNumWorksAtDistance() {
		return numWorksAtDistance;
	}
	public void setNumWorksAtDistance(String numWorksAtDistance) {
		this.numWorksAtDistance = numWorksAtDistance;
	}
	/* (non-Javadoc)
	 * @see com.beerandjesus.sportofkings.handicapper.model.Workout#getRank()
	 */
	public String getRank() {
		return rank;
	}
	public void setRank(String rank) {
		this.rank = rank;
	}

    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        WorkoutImpl workout = (WorkoutImpl) o;

        if (date != null ? !date.equals(workout.date) : workout.date != null) return false;
        if (description != null ? !description.equals(workout.description) : workout.description != null) return false;
        if (distance != null ? !distance.equals(workout.distance) : workout.distance != null) return false;
        if (numWorksAtDistance != null ? !numWorksAtDistance.equals(workout.numWorksAtDistance) : workout.numWorksAtDistance != null)
            return false;
        if (rank != null ? !rank.equals(workout.rank) : workout.rank != null) return false;
        if (time != null ? !time.equals(workout.time) : workout.time != null) return false;
        if (track != null ? !track.equals(workout.track) : workout.track != null) return false;
        if (trackCondition != null ? !trackCondition.equals(workout.trackCondition) : workout.trackCondition != null)
            return false;
        if (trackIndicator != null ? !trackIndicator.equals(workout.trackIndicator) : workout.trackIndicator != null)
            return false;

        return true;
    }

    public int hashCode() {
        int result;
        result = (date != null ? date.hashCode() : 0);
        result = 31 * result + (time != null ? time.hashCode() : 0);
        result = 31 * result + (track != null ? track.hashCode() : 0);
        result = 31 * result + (distance != null ? distance.hashCode() : 0);
        result = 31 * result + (trackCondition != null ? trackCondition.hashCode() : 0);
        result = 31 * result + (description != null ? description.hashCode() : 0);
        result = 31 * result + (trackIndicator != null ? trackIndicator.hashCode() : 0);
        result = 31 * result + (numWorksAtDistance != null ? numWorksAtDistance.hashCode() : 0);
        result = 31 * result + (rank != null ? rank.hashCode() : 0);
        return result;
    }
}
